home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 18
/
CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso
/
CUCD
/
Programming
/
AmigaE
/
Src
/
Guide
/
graphics.e
< prev
next >
Wrap
Text File
|
1994-12-13
|
652b
|
26 lines
MODULE 'intuition/intuition'
PROC main()
DEF wptr, i
wptr:=OpenW(20,50,200,100,IDCMP_CLOSEWINDOW,
WFLG_CLOSEGADGET OR WFLG_ACTIVATE,
'Graphics demo window',NIL,1,NIL)
IF wptr /* Check to see we opened a window */
Colour(1,3)
TextF(20,30,'Hello World')
SetTopaz(11)
TextF(20,60,'Hello World')
FOR i:=10 TO 150 STEP 8 /* Plot a few points */
Plot(i,40,2)
ENDFOR
Line(160,40,160,70,3)
Line(160,70,170,40,2)
Box(10,75,160,85,1)
WHILE WaitIMessage(wptr)<>IDCMP_CLOSEWINDOW
ENDWHILE
CloseW(wptr)
ELSE
WriteF('Error -- could not open window!\n')
ENDIF
ENDPROC